package com.egg.auth.feign;

import com.egg.auth.feign.fallback.AuthRoleFeignClientFallback;
import com.egg.common.core.model.response.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;


@FeignClient(
        value = "auth"
        , url = "${api.feign.url.auth:}"
        , fallbackFactory = AuthRoleFeignClientFallback.class
)
public interface AuthRoleFeignClient {


    /**
     * 请求参数不可控，需要使用 POST 类型，否则feign调用会有异常
     *
     * @return
     */
    @GetMapping("/feign/role/has-admin")
    ResponseData<Boolean> hasAdminGet();


}
